package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.Order;
import com.ruoyi.system.domain.vo.OrderDetailVo;
import com.ruoyi.system.domain.vo.OrderQueryVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {
    List<OrderDetailVo> queryList(@Param("vo") OrderQueryVo vo);

    @Update("update app_order set status=#{status} where order_sn=#{orderSn}")
    void updateStatus(@Param("orderSn") String orderSn, @Param("status") Integer status);
}
